<?php
$agenda = "
1. PERUTUSAN PENGERUSI
2. PENGESAHAN MINIT MESYUARAT
3. PERKARA_PERKARA BERBANGKIT
4. PEMBENTANGAN KERTAS-KERTAS KERJA
5. HAL-HAL LAIN
6. PENUTUP
";
?>
<div class="meetings form">
<h2><?php __('Add Meeting');?></h2>
<?php echo $form->create('Meeting',array('url'=>array('action'=>'add','controller'=>'meetings','committee'=>$dcommittee['Committee']['short_name']),'type'=>'file')); ?>
<fieldset>
    <legend><?php __('Add Meeting');?></legend>
    <div class="fieldset-inside">
<?php
echo $form->input('committee_id', array('type'=>'hidden','value'=>$dcommittee['Committee']['id']));
echo $form->input('meeting_title',array('error'=>__('This field cannot be left blank',true), 'size'=>'40','value'=>$defaulttitle));
echo $form->input('meeting_num',array('value'=>$nextnum));
echo $datePicker->picker('meeting_date',array('showstime'=>true,'class'=>'required','error'=>__('This field cannot be left blank',true)));
echo $html->div(
	'input required',
	$form->label('Venue').
	$ajax->autoComplete('venue','/'.$dcommittee['Committee']['short_name'].'/meetings/getvenue',array('size'=>50))
);
echo $form->error('venue',__('This field cannot be left blank',true),array('class'=>'error-message'));
echo $form->input('allow_representative',array('label'=>__('Allow representatives',true),'checked'=>true));
echo $form->input('agenda',array('value'=>$agenda));
//echo $form->input('setminute',array('type'=>'checkbox','label'=>__('Set Agenda as Minute Paragraph Default Title',true)));
echo $multiFile->input('agenda',array('label'=>__('Agenda Files',true)));
echo $multiFile->input('minutes',array('label'=>__('Minutes Files',true)));
echo $multiFile->input('presentations',array('label'=>__('Presentation Files',true)));
echo $datePicker->picker('confirm_duedate',array('label'=>__('Confirm Attendance Deadline',true)));

$days=(Configure::read('days_to_confirm_attendance')>0)?Configure::read('days_to_confirm_attendance'):'0';
echo "<span class='note'>".__('Leaving the field blank will set the deadline to',true).' '.$days.' '.__('days before meeting date.',true)."</span>";
?>
<div id="userlist">
    <?php echo $this->element('userlist',array('users'=>$users,'groups'=>$groups,'from'=>'meetings/add'));  ?>
</div>
</div>
</fieldset>
<p>&nbsp;</p>
<?php echo $form->button(__('Save', true),array('type'=>'submit'));?>&nbsp;
<?php echo $form->button(__('Cancel', true), array('type'=>'button', 'onclick'=>'history.go(-1)'));?>
<?php echo $form->end();?>
</div>
